package com.syedu.day04;

import com.syedu.util.InputUtil;

/**
 * description：
 * @author Administrator
 * @date 2022/3/9 16:28
 */
public class TestInputUtil {
    public static void main(String[] args) {
        int num1 = InputUtil.getInt("请您输入被加数: ");
        int num2 = InputUtil.getInt("请您输入加数: ");
        System.out.println(num1 + num2);

        double d1 = InputUtil.getDouble("请您输入第一个小数:");
        double d2 = InputUtil.getDouble("请您输入第二个小数:");
        System.out.println(d1 - d2);

        String str1 = InputUtil.getStr("请您输入一个单词:");
        String str2 = InputUtil.getStr("请您输入一个单词:");
        System.out.println(str1 + " " + str2);
    }
}